
#-*- coding:utf8 -*-
from Crypto.Cipher import AES,DES3
from hashlib import md5
import libnum

with open("flag.enc","rb") as f:
	s1=f.read()
key2=b"and_you_know_aes"
iv=md5(key2).digest()
key1="do_you_know_des3"

obj2=AES.new(key2,AES.MODE_CBC,iv)
s2=obj2.decrypt(s1)
obj1=DES3.new(key1,DES3.MODE_ECB)
flag=obj1.decrypt(s2)

print(flag)